package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 网签信息备份表
 *
 * @author zhiyuan
 * @since 2023-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edut_netsign")
@Schema(name = "EdutNetsign", title = "网签信息备份表", description = "网签信息备份表实体类")
public class EdutNetsign extends Model<EdutNetsign> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "netsignId", description = "网签id")
    @TableId(value = "netsign_id", type = IdType.ASSIGN_ID)
    private String netsignId;

    @Schema(name = "taskDetailId", description = "任务详情id")
    @TableField(value = "task_detail_id")
    private String taskDetailId;

    @Schema(name = "idcard", description = "身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "xm", description = "姓名")
    @TableField(value = "xm")
    private String xm;

    @Schema(name = "dz", description = "地址")
    @TableField(value = "dz")
    private String dz;

    @Schema(name = "xqmc", description = "小区名称")
    @TableField(value = "xqmc")
    private String xqmc;

    @Schema(name = "basj", description = "备案时间")
    @TableField(value = "basj")
    private String basj;

    @Schema(name = "htbabh", description = "合同备案编号")
    @TableField(value = "htbabh")
    private String htbabh;

    @Schema(name = "jd", description = "街道")
    @TableField(value = "jd")
    private String jd;

    @Schema(name = "schoolId", description = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "status", description = "是否启用0.禁用1.启用")
    @TableField(value = "status")
    private String status;

    @Schema(name = "remark", description = "备注")
    @TableField(value = "remark")
    private String remark;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "del", description = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "areaCode", description = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "addressId", description = "关联地址id")
    @TableField(value = "address_id")
    private String addressId;

    @Schema(name = "cleanFlag", description = "是否销毁 1是 0 否")
    @TableField(value = "clean_flag")
    private String cleanFlag;

    @Override
    public Serializable pkVal() {
        return this.netsignId;
    }
}
